package com.ezops.models;

import java.sql.Blob;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "REPORT")
public class Report implements  DomainEntity {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "REPORT_ID")
	private String reportId;
	
	@Column(name = "FILE_NAME")
	private String fileName;
	
	@Column(name = "REPORT_CATEGORY")
	private String category;
	
	@Column(name = "FILE_DATA")
	@Lob
	private Blob fileData;
	
	@Column(name = "FILE_LOCATION")
	private String fileLocation;

	@Column(name = "GROUP_ID")
	private String groupId;
	
	@Column(name = "AS_OF_DATE")
	private Date asOfDate;
	
	
	
	public Date getAsOfDate() {
		return asOfDate;
	}

	public void setAsOfDate(Date asOfDate) {
		this.asOfDate = asOfDate;
	}

	public String getId() {
		return reportId;
	}

	public void setId(String reportId) {
		this.reportId = reportId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public Blob getFileData() {
		return fileData;
	}

	public void setFileData(Blob fileData) {
		this.fileData = fileData;
	}

	public String getFileLocation() {
		return fileLocation;
	}

	public void setFileLocation(String fileLocation) {
		this.fileLocation = fileLocation;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	@Transient
	public String getReportId() {
		return reportId;
	}
	@Transient
	public void setReportId(String reportId) {
		this.reportId = reportId;
	} 

}
